package com.sunrise.generico.entidade;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.generico.entidade.iface.EntidadeNegocio;
import com.sunrise.generico.enums.Status;

@Entity
@Table(name = "historico_venda")
public class HistoricoVenda implements EntidadeNegocio {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4184018521922987566L;

	@Id
	@SequenceGenerator(name = "pk_sequence", sequenceName = "historico_venda_id_seq", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "pk_sequence")
	@javax.persistence.Column
	@Getter
	@Setter
	private Long id;

	@Column(name = "data")
	@Getter
	@Setter
	private Date data;

	@Column(name = "statusMovimentacao")
	@Getter
	@Setter
	private Status statusVenda;

	@ManyToOne
	@Getter
	@Setter
	private Venda venda;

}
